package com.lkq.gms.dao;

import com.lkq.gms.entity.stuClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface stuClassDao {
    //获取所有班级信息
    @Select("select * from stu_class")
    List<stuClass> getAll();
    //根据学生的classId获取信息
    @Select("select * from stu_class where id=#{classId}")
    stuClass getByClassId(@Param("classId") Integer classId);
}
